import re

list = []

with open("opcodes.txt", "r") as f:
    temp = f.readlines()
    for i in temp:
        if "#define" in i:
            rawres = i.split(" ")
            list.append(rawres[1].replace('ZEND_', ''))

with open('reopcode.txt', 'w') as f:
    for i in list:
        f.write(i + '\n')





